package com.jk.interfaces;

import com.jk.dto.TbClass;
import com.jk.pojo.PagedResponse;
import org.springframework.web.bind.annotation.*;

public interface TbClassServiceApi {

    @PostMapping(value = "/tbclass/findTbClassList")
    public PagedResponse<TbClass> findTbClassList(@RequestBody TbClass tbClass , @RequestParam(value = "pageNum") Integer pageNum , @RequestParam(value = "pageSize") Integer pageSize);

    @DeleteMapping(value = "/tbclass/delTbClassById")
    public void delTbClassById(@RequestParam(value = "id") Integer id);

    @PostMapping(value = "/tbclass/addTbClass")
    public void addTbClass(@RequestBody TbClass tbClass);

    @GetMapping(value = "/tbclass/getTbClassById")
    public TbClass getTbClassById(@RequestParam(value = "id") Integer id);

    @PutMapping(value = "/tbclass/upTbClass")
    public void upTbClass(@RequestBody TbClass tbClass);
}
